(function() {
	var mod = function(){};
	
	/* shared private variables */
	var foo = 0;
	/* private methods */
	var incFoo = function() {
		foo = foo++;
	};
	
	/* public & overriding methods & properties */
	mod.prototype = {
		/* override */
		init : function(){
			foo = 5;
		},
		/* override */
		onDOMLoad : function() {
			this.writeFoo();
			this.startIncrement();
		},
		writeFoo : function() {
			document.write(foo);
		},
		startIncrement : function() {
			var that = this;
			setTimeout(function() { incFoo(); that.writeFoo(); }, 500);
		}
	};
	KUVIO.modules.register(mod);
});
		